package com.cqjtu.eecs.entity.params.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ToString
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
public class UserParams {
    @NotBlank(message="用户名不可为空")
    @ApiModelProperty(value = "用户名")
    private String userName;
    @Size(min = 6, max = 16)
    @NotBlank(message="用户密码不可为空")
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "用户角色")
    private List<String> roleNames;
}
